package com.wzcl.app.model.vo;

import com.wzcl.app.dao.model.LiveRoom;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
public class LiveRoomVo extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房间号")
    private String nub;

    @ApiModelProperty(value = "课程号")
    private Integer courseId;

    @ApiModelProperty(value = "直播间名字")
    private String name;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "能否修改")
    private Boolean modified;

    @ApiModelProperty(value = "直播间状态")
    private Integer roomState;

    private LiveRoomVo() {
    }

    public static LiveRoomVo create(LiveRoom liveRoom){
        LiveRoomVo liveRoomVo = new LiveRoomVo();
        BeanUtils.copyProperties(liveRoom,liveRoomVo);
        liveRoomVo.translationValueStr();
        liveRoomVo.processResources();
        return liveRoomVo;
    }

    @Override
    public void translationValueStr() {
    }

    @Override
    public void processResources() {

    }
}
